package com.easybuilder.core.seo.controller;


import com.easybuilder.core.seo.service.SeoService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;


@RestController
@RequestMapping("/seo")
public class SeoController {
    @Resource
    private SeoService seoService;

    @PostMapping("/push")
    public Object push(String url) {
        seoService.push(url);
        return "seo push complete";
    }
}
